#
# This fragment should be the first to be included in the makefile.
# It contains the targets that need to done before all similar targets
# have executed.
#
# $Copyright: (c) 1997-2009 Thomas Dejanovic $ 
#


targets ::
	@echo
	@echo "initial.mak:"
	@echo "-----------"
	@echo
	@echo "  clean   -- delete all temporary files"
	@echo "  clobber -- delete all generated files"
	@echo
	@echo

# You should not write anything here that cannot be overridden later in
# the Makefile.

#---------------------------------------------------------------------
#
# handy definitions.
#


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# log cpu time.

define LOG_TIME
	# log the time.
	echo `date ; echo ", "; whoami; echo ", $$HOST"` >> $@_time
	uname -a >> $@_time
	tail -3 $@_log >> $@_time
	echo "-------------------------------------------" >> $@_time
endef

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


#---------------------------------------------------------------------
#
# You should define variables here that are used in one fragment, but are
# defined in another fragment that may or may not be included.

SUBMODULES = 

SVN_FILES = Makefile


#---------------------------------------------------------------------
#
# optimise run time.
#

# Remove any default suffix rules - can reduce run time by factor of 10.

.SUFFIXES :


# The following lines are to remove the default RCS and SCCS suffixes.
# This also reduces the run time (by about a factor of 2).

% : %,v
% : RCS/%,v
% : s.%
% : SCCS/s.%


#---------------------------------------------------------------------
#
# Default variables

MODULE_UPPER = $(shell echo ${MODULE} | tr a-z A-Z)

MODULE_DIR = ${PROJ_DIR}/${MODULE_PATH}

#---------------------------------------------------------------------
#
# Default exit commmand (for loop structures)

ifneq (, $(findstring k, $(MAKEFLAGS)))
EXIT_COMMAND = false
else
EXIT_COMMAND = exit 1
endif

#---------------------------------------------------------------------
# 
# Default targets. these are global targets which may not be available
# or have any meaning at all levels of the design hierachy.
#

post-traverse :

pre-traverse :

iterate :

.PHONY: rtl
rtl :

.PHONY: test
test :

# Default clean command


.PHONY: clean
clean ::
	rm -f .*~ *~ \#*\# *.pyc


.PHONY: clobber
clobber :: clean


#----------------------------------------------------------------------
# Local Variables:
# mode: makefile
# End:
# End of initial.mak
